<!--
 * @Author: 又帅又爱学习 501879094@qq.com
 * @Date: 2022-03-28 17:41:14
 * @LastEditors: 又帅又爱学习 501879094@qq.com
 * @LastEditTime: 2022-10-17 17:42:37
 * @FilePath: /vue_demo/src/views/ModelChild.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div>
    {{ value }}
  </div>
</template>
<script>
export default {
  name: 'ModelChild',
  props: {
    value: {
      type: String,
      default: ''
    }
  },
  created() {
    this.test1()
  },
  methods: {
    test1() {
      this.$emit('input', '小红')
    }
  }
}
</script>
